﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" 
Inherits="System.Web.Mvc.ViewPage<ZXCompany.Models.Entity.ZX_ExpertInfo>" %>
<%@ Import Namespace="ZXCompany.DBUtil" %>
<%@ Import Namespace="ZXCompany.Models.Entity" %>
<%@ Import Namespace="System.Collections.Generic" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <h2>专家团队详细</h2>
    <%   
        string HomeAction = Request.QueryString["action"] == null ? "" : Request.QueryString["action"].ToString();
        if (HomeAction != "add")
        { 
    %>
    <div style="width:100%;" class="tabtitle" >
	    <ul id="mytab1">
		    <li class="active">专家信息管理</li>
		    <li class="normal" onclick="javascript:window.location.href = 'ExpertInfo.aspx?action=add&zid=0';">专家信息添加</li>
	    </ul>
    </div>
    <div style="width:100%;">
	    <table style="text-align:center;">
            <tr class="tdodd">
                <th style="background: none repeat scroll 0% 0% rgb(102, 187, 255);" colspan="9"></th>
            </tr>
            <tr style=" height:20px;background: #eeeeff;"><td colspan="9"></td></tr>
            <tr style="background:#8899cc;font-size:14px; font-weight:bold;">
                <td style="background: #eeeeff; width:5%"></td>
                <td style="width:10%;">专家类别</td>
                <td style="width:12%;font-weight:bold; ">专家相片</td>
                <td style="width:10%;font-weight:bold; ">专家姓名</td>
                <td style="width:10%;font-weight:bold; ">专家职位</td>
                <td style="width:30%;font-weight:bold; ">专家详细信息</td>
                <td style="width:15%;font-weight:bold; ">排序</td>
                <td style="width:8%;font-weight:bold; "></td>
                <td style="background: #eeeeff; width:5%"></td>
            </tr>
            <%     
                IList<ZX_ExpertInfo> HPImageList = ViewData["Account_ExpertInfo"] as IList<ZX_ExpertInfo>;
                for (int i = 0; i < HPImageList.Count; i++)
                {
            %>
            <tr> 
                <td style="background: #eeeeff; width:5%"></td>
  	            <%--<td width="5%"><% =i +1 %></td>--%>
                <td style="background: #fff;"><%=HPImageList[i].typeName %></td>
                <td style="background: #fff;">
                    <img src="<%=HPImageList[i].imageUrl %>" width="200" height="150" border="0" alt=""/>
                </td>
                <td style="background: #fff;"><% =HPImageList[i].expertName %></td>
                <td style="background: #fff;"><% =HPImageList[i].expertPostion %></td>
                <td style="background: #fff;"><% =HPImageList[i].expertDetail %></td>
                <td style="background: #fff;"><% =HPImageList[i].sort %></td>
                <td style="background: #fff;color:#00f">
                    <a href="ExpertInfo.aspx?action=add&hp_id=<%=HPImageList[i].ID %>">编辑</a> |
                    <a href="ExpertInfo.aspx?action=del&hp_id=<%=HPImageList[i].ID %>" onclick="if(!confirm('确定删除该专家团队分类么？'))return false;">
                    删除</a> 
                </td>
                <td style="background: #eeeeff; width:5%"></td>
            </tr>
            <%   
                }      
            %>
        </table>
    </div>
    <%
    }
    else
    { 
    %>
    <form action="<%=VirtualPath.getVirtualPath()%>/Account/ExpertInfo_Edit.aspx" 
        method="post" id="ExpertInfo_Edit" name="ExpertInfo_Edit" enctype="multipart/form-data">  
    <div style="width:100%;" class="tabtitle" >
	    <ul id="Ul1">
		    <li class="normal" onclick="javascript:window.location.href = 'ExpertInfo.aspx';">专家信息管理</li>
		    <li class="active">专家信息添加</li>
	    </ul>
    </div>
    <div style="width:100%;">
	    <table class="ta" >
            <tr class="tdodd">
                <th style="background: none repeat scroll 0% 0% rgb(102, 187, 255);" colspan="5"></th>
            </tr>
            <tr><td style="background: #eeeeff; height:20px;" colspan="4"></td></tr>
            <%--<td width="40%" style="background: #fff;"><%=HPImageList[i].typeName %></td>
                <td width="15%" style="background: #fff;">
                    <img src="<%=HPImageList[i].imageUrl %>" width="400" height="300" border="0" alt=""/>
                </td>
                <td width="15%" style="background: #fff;"><% =HPImageList[i].expertName %></td>
                <td width="15%" style="background: #fff;"><% =HPImageList[i].expertPostion %></td>
                <td width="15%" style="background: #fff;"><% =HPImageList[i].expertDetail %></td>
                <td width="15%" style="background: #fff;"><% =HPImageList[i].sort %></td>--%>
	        <tr>
                <td style="background: #eeeeff; width:10%"></td>
                <td style=" text-align:center; width:120px; height:40px;">专家类别：</td>
                <td align="left"> 
                    <select id="typeID" name="typeId">
                        <option value="0"></option>
                    <%     
                        IList<ZX_ExpertType> TypeList = ViewData["Account_ExpertType"] as IList<ZX_ExpertType>;
                        for (int i = 0; i < TypeList.Count; i++)
                        {
                            if (TypeList[i].ID == Model.typeID)
                            {
                    %>
                        <option selected="selected" value="<% =TypeList[i].ID %>"><% =TypeList[i].etype %> </option>
                    <%}
                            else{
                    %>
                        <option value="<% =TypeList[i].ID %>"><% =TypeList[i].etype %> </option>
                    <%  }} %>
                    </select>
	            </td>
                <td style="background: #eeeeff; width:10%"></td>
            </tr>
	        <tr>
                <td style="background: #eeeeff; width:10%"></td>
                <td style=" text-align:center; height:40px;">专家相片：</td>
                <td align="left"> 
                    <input type="file" id="imageUrl" size="40" value="<% =Model.imageUrl %>" name="imageUrl"/>
                    <%--outhtml ="<% =Model.imageUrl %>"--%>
	            </td>
                <td style="background: #eeeeff; width:10%"></td>
            </tr>
	        <tr>
                <td style="background: #eeeeff; width:10%"></td>
                <td style=" text-align:center; height:40px;">专家姓名：</td>
                <td align="left"> 
                    <input class="input_out" style="padding: 2px; width: 450px;" 
                    value="<% =Model.expertName %>" name="expertName" size="40" type="text"/>

	            </td>
                <td style="background: #eeeeff; width:10%"></td>
            </tr>
	        <tr>
                <td style="background: #eeeeff; width:10%"></td>
                <td style=" text-align:center; height:40px;">专家职位：</td>
                <td align="left"> 
                    <input class="input_out" style="padding: 2px; width: 450px;" 
                    value="<% =Model.expertPostion %>" name="expertPostion" size="40" type="text"/>

	            </td>
                <td style="background: #eeeeff; width:10%"></td>
            </tr>
	        <tr>
                <td style="background: #eeeeff; width:10%"></td>
                <td style=" text-align:center; height:40px;">专家详细信息：</td>
                <td align="left"> 
                    <%--<input class="input_out" style="padding: 2px; width: 450px;" 
                    value="<% =Model.expertDetail %>" name="expertDetail" size="40" type="text"/>
                    <textarea   class="input_out" style="padding: 2px; width: 450px; height:300px;" 
                    name="expertDetail"><% =Model.expertDetail %></textarea> --%>
                    <textarea class="ckeditor" cols="80" id="expertDetail" name="expertDetail" rows="10">
                    <% =Model.expertDetail %>
                    </textarea>

	            </td>
                <td style="background: #eeeeff; width:10%"></td>
            </tr>
	        <tr>
                <td style="background: #eeeeff; width:10%"></td>
                <td style=" text-align:center; height:40px;">排序：</td>
                <td align="left"> 
                    <input class="input_out" style="padding: 2px; width: 450px;" 
                    value="<% =Model.sort %>" name="sort" size="40" type="text"/>

	            </td>
                <td style="background: #eeeeff; width:10%"></td>
            </tr>
            <tr>
                <td style="background: #eeeeff; width:10%"></td>
                <td></td>
                <td style=" text-align:center; height:40px;">
                    <input type="submit" id="infoSave" value="保存" class="input2"/>
                    <input type="hidden" value="<% =Model.ID %>" name="ID" id="ID"/>
                </td>
                <td style="background: #eeeeff; width:10%"></td>
            </tr>
            <tr><td style="background: #eeeeff; height:20px;" colspan="4"></td></tr>
        </table>
    </div>
    </form>    
    <%
    }
    %>
    <%--<div style="margin:0 auto; width:100% ;text-align:center;"> 

        <table width ="90%" style=" height:100%;">
            <tr style="background:#6677AA;">
                <td style="width:10%; font-weight:bold; font-size:14px;">专家类别</td>
                <td style="width:12%;font-weight:bold; font-size:14px;"">专家相片</td>
                <td style="width:10%;font-weight:bold; font-size:14px;"">专家姓名</td>
                <td style="width:10%;font-weight:bold; font-size:14px;"">专家职位</td>
                <td style="width:40%;font-weight:bold; font-size:14px;"">专家详细信息</td>
                <td style="width:15%;font-weight:bold; font-size:14px;"">排序</td>
                <td></td>
            </tr>
            <tr>
                <td>咨询专家</td>
                <td><img src="../../Content/upload/export/sa.jpg" /></td>
                <td>张兴</td>
                <td>首席执行顾问</td>
                <td>在世界知名企业长期从事经营变革的推动工作，对企业管理方式的转变，经营方式的变革具有丰富的经验。
                从初期的担任3定5S推广运营的负责人，到基于现场管理的BMS的负责人，再到消除生产、品质及管理Loss的Lossless活动负责人，再到基于组织绩效管理的MBS负责人，以及6sigma运营推广和1P1P、TDR课题负责人，广泛而又深入地把握了现代企业管理的方法和原则，积累了丰富而又实际的操作经验。
            擅长领域：
                战略咨询：制定企业经营战略，构筑 KPI管理体系、改善体系
                6sigma：GB、BB的培养 和 基于 6sigma的课题改善活动</td>
                <td>1</td>
                <td style="text-align:left"><input type="button" id="Button1" value="编辑" /><input type="button" id="Button2" value="删除" />
                </td>
            </tr>
            <tr>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td></td>
                <td style="text-align:left">
                    <input type="button" id="infoSave" value="添加" class="input2" />
                </td>
            </tr>
        </table>
    </div>--%>
</asp:Content>
